var key = window.location.href.split('?')[1].split('=')[1]
$.ajax({
    method: 'GET',
    url: 'http://localhost:3000/posts/search/' + key,
    success: function (res) {
        var html = template('seach', { data: res })
        $('#listBox').html(html);
    }
})